package com.test.fastdfs.demo;


import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Comparator;

@Data
@AllArgsConstructor
public class Department implements Comparable<Department> {
    private Integer id;
    private String name;
    private String Type;


    @Override
    public int compareTo(Department o) {
        return this.id-o.getId();
    }
}
